package com.example.demo.api.ecom;

import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitClient;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Query;

@RetrofitClient(baseUrl = "${ecom.smb.base}")
public interface SmbApi {
    /**
     * <p>配置:  ms.ecom.smb.member.host  (@Value)
     * <p> 请求头: apikey
     *
     * @return
     */
    @GET("api/v1/smb/smbUser/getByUid/forAlc")
    @Headers("apikey: l71e61572864c8427dabefa21de6389c7e")
    Object getSmbUser(@Query("uid") String uid);

    /**
     * <p>配置:  ms.ecom.smb.member.host  (@Value)
     * <p> 请求头: apikey
     *
     * @return
     */
    @GET("api/v1/smb/customGroup/getByGid/forAlc")
    @Headers("apikey: l71e61572864c8427dabefa21de6389c7e")
    Object customGroup(@Query("gid") String coustomerGroupId);
}
